<?php

class AFStorageModule extends AFModule
{
	private $symbols;

	public function getClassName()
	{
		return 'AFStorage';
	}

	public function getModuleName()
	{
		return 'AFStorage';
	}

	public function __construct()
	{
	}

	public function register($name, &$value)
	{
		$this->symbols[$name] = $value;
	}

	public function unregister($name)
	{
		if(isset($this->symbols[$name]))
		{
			unset($this->symbols[$name]);
		}
	}

	public function get($name)
	{
		if(isset($this->symbols[$name]))
		{
			return $this->symbols[$name];
		}
	}

	public function __invoke($name)
	{
		return $this->get($name);
	}
}

?>
